package com.toncen.samepms.tree;

import java.util.List;

import com.toncen.samepms.common.AbstractTreeProvider;
import com.toncen.samepms.net.dao.ChannelDao;
import com.toncen.samepms.net.domain.Channel;

public class ChannelTreeProvider extends AbstractTreeProvider<Channel>{
	
	public ChannelTreeProvider(){
		
	}

	@Override
	public List<Channel> getRoots() throws Exception {
		ChannelDao channelDao = new ChannelDao();
		return channelDao.getAllRootChannel();
	}

	public static void main(String[] args) throws Exception {
		ChannelTreeProvider moduleTree = new ChannelTreeProvider();
		System.out.println(moduleTree.getRoots());
	}
}
	
